<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>
<head>
	<sx:head cache="false" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
	<link rel="stylesheet" href="/hrs-intranet/styles/errortag.css" type="text/css" />
</head>

<s:if test="hasFieldErrors()">
	<div class="oldErrorMsg">
		<h4 class="oldErrorTitle">Error(s) with submission:</h4>
		<s:iterator value="fieldErrors">
			<s:iterator value="value">
				<li>
					<font class="errorMsgFont">
						<s:property/>
					</font>
				</li>
			</s:iterator>
		</s:iterator>
	</div>
	<br/>
	<br/>
</s:if>

<s:form validate="true" cssClass="formClass">
 <s:hidden key="id"/>
 <s:hidden key="actionMethod" value="%{actionMethod}"/>

<div>
	 <sx:autocompleter
	        list="employeeList"
	        listValue="person.name"
	        listKey="id"
	        searchType="startword"
	        showDownArrow="false"        
	        keyName="selectedAssignedToId"
	        label="Employee"
	        required="true"
	        autoComplete="false"
	        name="selectedEmployeeName"
			forceValidOption="true"
	 />
	 <sx:autocompleter
	        list="projectList"
	        listValue="name"
	        listKey="id"
	        showDownArrow="false"    
	        key="project"    
	        label="Project"
	        required="true"
			readonly="%{readOnly}"
			forceValidOption="true"
	 />
	 <s:textfield key="selectedQuantity" name="selectedQuantity" readonly="%{readOnly}" label="Days" required="true"/> 
	 <sx:autocompleter
	        list="employeeList"
	        listValue="person.name"
	        listKey="id"
	        searchType="startword"
	        showDownArrow="false"       
	        keyName="selectedAssignedById"
	        label="Assigned by"
	        required="true"
	        autoComplete="false"       
	        name="selectedAssignedByName"
			forceValidOption="true"
	 />
	 <s:textarea key="notes" readonly="%{readOnly}" label="Notes" rows="4" cols="16"  cssClass="formTextAreaClass" wrap="50"/>
</div>
  <div id="btnHolder"> 
	 <s:submit action="%{actionMethod}" value="OK" cssClass="btn" cssStyle="position:relative; left:-95px;"/>
	<s:url id="list_action" action="CompensationDaysAction_list" />
<!--	<s:a href="%{list_action}" cssClass="btnCancel"  cssStyle="position:absolute; top:300px; left:442px; _top:320px;">Cancel</s:a>	-->
 	<s:submit action="%{actionMethod}" key="Cancel" cssClass="btnCancel" method="list" cssStyle="position:relative; left:0px; top:-25px; _top:-27"/>
 </div>
</s:form>


